#include"Func.h"
//inline void F(int x, int y)
//{
//	cout << x + y << endl;
//}

void Stack::Init(int DEFAULTCAPACITY)
{
	a = (int*)malloc(sizeof(int) * DEFAULTCAPACITY);
	if (a == nullptr)
	{
		perror("malloc fail");
		return;
	}
	capacity = DEFAULTCAPACITY;
	top = 0;
}